Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support manual event subscription based case event-registry start #3817

Merged

Conversation

mkiener
Copy link
Contributor

@mkiener mkiener commented Jan 8, 2024

Add support for dynamic, manually created event subscriptions with any combination of correlation parameter values for an event-registry based case start.

Check List:
Unit tests: YES
Documentation: NO

CaseInstanceStartEventSubscriptionModificationBuilder createCaseInstanceStartEventSubscriptionModificationBuilder();

/**
* Creates a new event subscription deletion builder delete one or more previously registered case start event subscriptions based
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Creates a new event subscription deletion builder delete one or more previously registered case start event subscriptions based
* Creates a new event subscription deletion builder to delete one or more previously registered case start event subscriptions based


} else {
throw new FlowableObjectNotFoundException("Case definition with key '" + caseDefinitionKey +
"' and tenantId '"+ tenantId +"' was not found", CaseDefinition.class);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"' and tenantId '"+ tenantId +"' was not found", CaseDefinition.class);
"' and tenantId '"+ tenantId +"' was not found.", CaseDefinition.class);

For consistency with other messages

import org.flowable.common.engine.impl.interceptor.CommandContext;

/**
* This command either modifies event subscriptions with a case start event and optional correlation parameter values.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* This command either modifies event subscriptions with a case start event and optional correlation parameter values.
* This command either deletes event subscriptions with a case start event and optional correlation parameter values.

Micha Kiener added 2 commits January 9, 2024 08:25
@mkiener mkiener force-pushed the dynamic-event-registry-case-start branch from 7d40dae to b68e0f9 Compare January 9, 2024 07:53
@tijsrademakers tijsrademakers merged commit 16e1de6 into flowable:main Jan 14, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants